package com.sx.dao.user;

import com.sx.basic.dao.BasicRepository;
import com.sx.entity.user.InviteCodeEntity;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2020/11/18 14:23
 */
public interface InviteCodeRepository extends BasicRepository<InviteCodeEntity,Long> {

    @Query("select e from InviteCodeEntity e where e.code=?1")
    InviteCodeEntity getByCode(String code);

}
